<!-- 主页 -->
<template>
  <div class="contain">
    <!-- 左边 -->
    <div class="left" style="width:220px" v-show="(!guideShow && !fullscreen)">
      <div class="logo">
        <img src="../assets/img/logoPC.png" />
      </div>
      <!-- 菜单 -->
      <div class="menu">
        <!-- 一级菜单 -->
        <div class="menuLeft">
          <div v-for="item in menuData" :class="manageKey == item.key ? 'menuItemL_2':'menuItemL_1'" @click="selectMenus(item.key)">
            <div><img :src="manageKey == item.key ? require('../assets/img/'+item.key+'_S.png') : require('../assets/img/'+item.key+'_C.png')" /></div>
            <div>{{item.name}}</div>
          </div>
        </div>
        <!-- 二级菜单 -->
        <div class="menuRight">
          <div v-for="item in menuItemData" :class="menuKey == item.key ? 'menuItemR_2':'menuItemR_1'" @click="selectMenuData(item)">
            <img :src="menuKey == item.key ? require('../assets/img/'+item.key+'_S.png') : require('../assets/img/'+item.key+'_C.png')" />
            <label v-show="shrinkMenu == false">{{item.name}}</label>
          </div>
        </div>
      </div>
    </div>    
    <!-- 右边 -->
    <div class="right" :style="fullscreen || guideShow ? 'width: 100%;':'width: calc(100% - 220px);'">
      <!-- 头部 -->
      <div class="headContent">
        <!-- 导航 -->
        <div class="headLeft">
          <div class="guideIcon" @click="shrinkkGuide" v-show="fullscreen == false">
            <img :src="this.guideShow ? require('../assets/img/guideOut.png'):require('../assets/img/guideIn.png')" />
          </div>
          <div class="guidePanel">
            <label class="guideText_1" @click="selectMenus(manageKey)">{{ manageName }}</label>/ &nbsp;
            <label class="guideText_1" @click="returnMenuData(menuKey,manageKey)">{{menuName}}</label>/&nbsp;
            <label class="guideText_2">{{titleName}}</label>
          </div>
        </div>
        <!-- 工具 -->
        <div class="headRight">
          <div class="loginTool" @click="openUserButton(true)">
            <div class="loginUser">{{userName}}</div>
            <div class="loginOrg">{{orgData}}</div>
          </div>
          <img class="headImg" @click="openUserButton(true)" :src="userSex ==  1 ? require('../assets/img/boy.png') : require('../assets/img/girl.png')" />
          <div style="float:right;">
            <button class="butText" @click="openFullscreen">{{ fullscreenTitle }}</button>
          </div>
          <div style="float:right;">
            <img class="butIcon" src="../assets/img/updateIcon.png" title="更新" />
            <img class="butIcon" src="../assets/img/knowledgeIcon.png" title="帮助文档" />
            <img class="butIcon" src="../assets/img/messageIconM.png" title="通知消息" />
          </div>
        </div>
      </div>
      <!-- 内容区域 -->
      <div class="mainContent">
        <!-- 主面板 -->
        <div class="mainHome" v-if="mainOpenType == 'HomePage'">
          <!-- 推广视频 -->
          <div class="blockPanel block_1">
            <img src="../assets/img/ad_1.png" style="width: 100%; height: 100%; border-radius: 5px;" />
          </div>
          <!-- 公告 -->
          <div class="blockPanel block_3">
            <div class="blockT">
              <img src="../assets/img/noticeIcon.png" />公告通知
            </div>
            <div class="noticeText" v-show="noticeText != null && noticeText.length > 0">{{noticeText}}</div>
            <div class="notDataM" v-show="!(noticeText != null && noticeText.length > 0)">
              <img src="../assets/img/notData.png" />
              <div>暂无公告</div>
            </div>
          </div>
          <!-- 快捷链接按钮 -->
          <div class="blockPanel block_2">
            <div class="blockT" style="margin-bottom: 20px;">
              <img src="../assets/img/collectIcon.png" />快捷入口
            </div>
            <div class="quickItem" v-for="item in quickItems" v-show="quickItems != null && quickItems.length > 0">
              <div class="img"><img :src="item.imgUrl" /></div>
              <div class="text">{{item.name}}</div>
            </div>
            <div class="notDataB" v-show="!(quickItems != null && quickItems.length > 0)">
              <img src="../assets/img/notData.png" />
              <div>暂无相关信息</div>
            </div>
          </div>
          <!-- 代办处理单据提示 -->
          <div class="blockPanel block_2">
            <div class="blockT" style="margin-bottom: 20px;">
              <img src="../assets/img/stayIcon.png" />待办事项
            </div>
            <div class="awaitItem" v-for="item in satyItems" :title="item.count" v-show="satyItems != null && satyItems.length > 0">
              <div class="awaitLeft">
                <img :src="item.imgUrl" />{{item.name}}
              </div>
              <div class="awaitNum">{{item.count}}</div>
            </div>
            <div class="notDataB" v-show="!(satyItems != null && satyItems.length > 0)">
              <img src="../assets/img/notData.png" />
              <div>暂无相关信息</div>
            </div>
          </div>
          <!-- 未读消息 -->
          <div class="blockPanel block_4">
            <div class="blockT" style="margin-bottom: 20px;">
              <img src="../assets/img/messageIconB.png" />未读消息
              <button @click="openMessageMenu" style="color: #999; cursor: pointer; font-size: 14px; border: none; background: none; margin-left: 35%;">
                查看消息中心 >>
              </button>
            </div>
            <div class="messageList" v-for="item in messageItems" v-show="messageItems != null && messageItems.length > 0">
              <div>
                <div class="messageTitle">{{item.title}}</div>
                <div class="messageDate">{{item.date}}</div>
              </div>
              <div class="messageText">{{item.message}}</div>
            </div>
            <div class="notDataB" v-show="!(messageItems != null && messageItems.length > 0)">
              <img src="../assets/img/notData.png" />
              <div>暂无相关信息</div>
            </div>
          </div>
        </div>
        <!-- 操作功能界面 -->
        <div class="mainCommon" v-else>
          <!-- 用户账号 -->
          <my-data :menuData="menuObj" :theOrg="orgId" v-if="mainOpenType == 'DataUser'"></my-data>
          <!-- 数据列表 -->
          <list-data :menuData="menuObj" :theOrg="orgId" v-else-if="mainOpenType == 'DataList'"></list-data>
          <!-- 公告/知识库 -->
          <message-data :menuData="menuObj" :theOrg="orgId" v-else-if="mainOpenType == 'DataMessage'"></message-data>
          <!-- 销售报表 -->
          <sales-report :menuData="menuObj" :theOrg="orgId" v-else-if="mainOpenType == 'SalesReport'"></sales-report>
          <!-- 生产报表 -->
          <product-report :menuData="menuObj" :theOrg="orgId" v-else-if="mainOpenType == 'ProductReport'"></product-report>
          <!-- 生产大屏 -->
          <production-board :menuData="menuObj" :theOrg="orgId" v-else-if="mainOpenType == 'ProductionBoard'"></production-board>
          <!-- 产线大屏 -->
          <product-line-board :menuData="menuObj" :theOrg="orgId" v-else-if="mainOpenType == 'ProductionLineBoard'"></product-line-board>
        </div>
      </div>
    </div>
    <!-- <audio controls="controls" hidden src="../assets/music/y1241.mp3" ref="audio"></audio> -->
    <!-- 浮动工具 -->
    <!-- 账号选择 -->
    <div class="userPanel" v-show="showUserPanel">
      <div style="border-bottom: solid 1px #CCC;"><img src="../assets/img/user.png" />个人中心</div>
      <div @click="loginOut"><img src="../assets/img/logOut.png" />退出登录</div>
    </div>
    <div class="shieldDiv" v-show="showUserPanel" @click="openUserButton(false)"></div>
    <!-- 用户操作面板 -->
  </div>
</template>
<script>
import myData from "./myData.vue";
import listData from "./listData.vue";
import settingData from "./settingData.vue";
import messageData from "./messageData.vue";
import salesReport from "./salesReport.vue";
import productReport from "./productReport.vue";
import productionBoard from "./productionBoard.vue";
import productLineBoard from "./productLineBoard.vue";

export default {
  name: "index",
  data() {
    return {
      //主参数
      fullscreenTitle: "全屏显示",
      fullscreen: false, //全屏控制      
      guideShow: false, //导航指引显示
      shrinkMenu: false, //缩小菜单      
      paramsList:[], //实际信息提醒搜索过滤条件
      mainOpenType: 'HomePage', //显示对应内容模板
      showUserPanel: false,
      //菜单数据
      menuObj:{key: 'HomePage',name: '主页'},
      menuData: [],
      menuItemData:[],
      defaultMenuItems:[{ id:0,key:'HomePage',name:'主页' }],
      manageKey:"HomePage",
      manageName:"主页",
      menuKey: "HomePage",
      menuName: "主页",
      menuUrl:"",
      titleName:"",
      //账号数据
      userName: "",
      userSex:1,
      orgId: 0,
      orgData: {}, //组织数据
      showUser: false, //个人信息对话框的显示与隐藏
      userInfoTitle: "个人信息", //个人信息对话框标题
      //主页数据
      noticeText: '',//"系统更新通知：2023年12月31号 下午16点30分进行更新升级，请用户注意，如出现操作延迟或者点击无效，请稍等10分重新登录系统，谢谢您的谅解",
      quickItems:[ //快捷入口数组
        { name:'新增用户',imgUrl: require('../assets/img/quick_4.png'),manageKey:'SystemManage',menuKey:'User',openType:'edit',openUrl:'editData' },
        { name:'新增客户',imgUrl: require('../assets/img/quick_8.png'),manageKey:'CustomerManage',menuKey:'Customer',openType:'edit',openUrl:'editData' },
        { name:'新增合同单',imgUrl: require('../assets/img/quick_1.png'),manageKey:'CustomerManage',menuKey:'ContractOrder',openType:'edit',openUrl:'editOrder' },
        { name:'新增加工单',imgUrl: require('../assets/img/quick_5.png'),manageKey:'ProductManage',menuKey:'ProcessOrder',openType:'edit',openUrl:'editOrder' },
        { name:'新增工序',imgUrl: require('../assets/img/quick_3.png'),manageKey:'ProductManage',menuKey:'Process',openType:'edit',openUrl:'editData' },
        { name:'新增工艺路线',imgUrl: require('../assets/img/quick_9.png'),manageKey:'ProductManage',menuKey:'Part',openType:'edit',openUrl:'editOrder' },
        { name:'新增采购单',imgUrl: require('../assets/img/quick_2.png'),manageKey:'WarehousePurchase',menuKey:'PurchaseOrder',openType:'edit',openUrl:'editOrder' },
        { name:'新增调拨单',imgUrl: require('../assets/img/quick_7.png'),manageKey:'WarehousePurchase',menuKey:'StockAllotOrder',openType:'edit',openUrl:'editOrder' },        
        { name:'新增盘点单',imgUrl: require('../assets/img/quick_6.png'),manageKey:'WarehousePurchase',menuKey:'StockTakeOrder',openType:'edit',openUrl:'editOrder' }
      ],
      satyItems:[ //待处理数组
        { name:'待审合同单',imgUrl: require('../assets/img/await_1.png'),manageKey:'CustomerManage',menuKey:'ContractOrder',openType:'listDetail',where:'state!=2',count:0 },
        { name:'待审采购计划',imgUrl: require('../assets/img/await_2.png'),manageKey:'WarehousePurchase',menuKey:'PurchasePlanOrder',openType:'listDetail',where:'state!=2',count:0 },
        { name:'待审采购单',imgUrl: require('../assets/img/await_3.png'),manageKey:'WarehousePurchase',menuKey:'ContractOrder',openType:'listDetail',where:'state!=2',count:0 },
        { name:'待审加工单',imgUrl: require('../assets/img/await_4.png'),manageKey:'ProductManage',menuKey:'ProcessOrder',openType:'listDetail',where:'state!=2',count:0 },
        { name:'待完结生产任务',imgUrl: require('../assets/img/await_5.png'),manageKey:'ProductManage',menuKey:'ProductionTaskOrder',openType:'list',where:'state!=2',count:0 },
        { name:'待审工艺路线',imgUrl: require('../assets/img/await_6.png'),manageKey:'ProductManage',menuKey:'Part',openType:'listDetail',where:'state!=2',count:0 },
        { name:'待审调拨',imgUrl: require('../assets/img/await_7.png'),manageKey:'WarehousePurchase',menuKey:'StockAllotOrder',openType:'listDetail',where:'state!=2',count:0 },
        { name:'待审客户',imgUrl: require('../assets/img/await_8.png'),manageKey:'CustomerManage',menuKey:'Customer',openType:'list',where:'state!=2',count:'0' }
      ],
      messageItems:[ //未读消息数组
        // { title:'#合同订单#审核通过',date:'2023-12-28 18:00',message:'您创建的#合同订单#已审核通过，订单编号: H000122335' },
        // { title:'#合同订单#待审核',date:'2023-12-28 18:00',message:'您有一个等待审核的#合同订单#，订单编号: H000122335' },
        // { title:'#生产任务#已审结',date:'2023-12-28 18:00',message:'您有一个#生产任务#已完结执行，订单编号: H000122335' }
      ],
      //其它数据
      times: null, // 导航栏触发时间
      maxHeight: 250
    };
  },
  components: {
    myData,
    listData,
    settingData,
    messageData,
    salesReport,
    productReport,
    productionBoard,
    productLineBoard
  },
  created() {
    //从本地存储获取用户名和组织（登录成功时候上传的）
    this.userName = sessionStorage.getItem("userName");
    this.userSex = sessionStorage.getItem("userSex");
    var theOrg = JSON.parse(sessionStorage.getItem("orgData"));
    this.orgData = theOrg.orgName;
    this.orgId = theOrg.orgId;    
    if (this.$store.getters.tabPathListFindIndexID(0) == -1) {
      const homePath = {
        id: 0,
        name: "首页",
        url: "/home"
      };
    }    
    //定时请求信息
    //this.times = setInterval(() => {
      //this.getMessageNumber();
    //}, 6000 * 50); //6000 * 50
  },
  mounted() {
    if (this.$store.getters.tabPathListFindIndexID(1) == -1) {
      const workPath = {
        id: 1,
        name: "工作",
        url: "/mainIndex"
      };
      this.$store.commit("pushTabPathList", workPath);
    }
    this.getMenuData();
    // 当浏览器窗口被调整大小的时候触发
    window.onresize = () => {
      return (() => {
        let maxHeight = window.innerHeight;
        this.maxHeight = maxHeight;
        this.$store.commit("getMaxHeight", maxHeight);
      })();
    };
    window.addEventListener("fullscreenchange", e => {
      if (this.fullscreen) {
        this.fullscreen = true;
      } else {
        this.fullscreen = false;
      }
    });
    let menuData = {
      key: 'HomePage',
      name: '主页',
    };
    this.menuObj = menuData;
  },
  destroyed() {
    //销毁
    clearInterval(this.times);
  },
  methods: {
    async getActionSelect(v, paramsList, selectProgject) {
      this.paramsList = paramsList;
      this.getMessageData(paramsList);
    },
    async getMenuData(){
      //获取菜单数据
      let { data: res } = await this.$http.get("/menuList");
      if (res.result){
        this.menuData = res.obj;
        console.log(this.menuData);
        this.menuItemData = this.defaultMenuItems;
      } else {
        this.clewMsg(3,res.msg);
      }
    },
    //切换二级菜单数据
    selectMenus(menuKey){
      this.manageKey = menuKey;
      if(menuKey != null){
        if(menuKey == 'HomePage'){
          this.menuItemData = this.defaultMenuItems;
          this.mainOpenType = 'HomePage';
          this.menuKey = 'HomePage';
          this.manageName = '主页';
          this.menuName = '主页';
          this.titleName = '';          
        }else{
          var theMenus = this.menuData.filter(item => item.key === menuKey);
          this.menuItemData = theMenus[0].items;
        }        
      }
    },
    selectMenuData(data){
      if(data.remark == 'notData'){
        this.$message({
        type: "error",
        message: '很抱歉，该功能正在升级中，暂未开通'
      });
      }else{
        console.log('menu.key:>>');
        console.log(data);
        this.titleName = "";
        if(data.key != null && data.key != 'HomePage') {
          this.manageKey = data.parentKey;
          var theMenus = this.menuData.filter(item => item.key === data.parentKey);
          this.manageName = theMenus[0].name;
          this.menuKey = data.key;
          this.menuName = data.name;
          this.menuObj = data;
          if(data.openType != null && data.openType.includes('list')){
            this.mainOpenType = "DataList";
          }else{
            switch(data.openType){
              case "inform": this.mainOpenType = "DataMessage"; break;              
              case "user": this.mainOpenType = "DataUser"; break;
              case "setting": this.mainOpenType = "DataSetting"; break;
              case "report":
              case "board": 
                this.mainOpenType = data.key;
              break;
            }
          }          
        }else{
          this.menuItemData = this.defaultMenuItems;
          this.mainOpenType = 'HomePage';
          this.manageKey = 'HomePage';
          this.menuKey = 'HomePage';
          this.manageName = '主页';
          this.menuName = '主页';
        }
      }
    },
    openMessageMenu(){
      let data = { parentKey:'InformationManage',key:'MessageTool',name:'消息列表',openType:'listRecord' };
      this.selectMenuData(data);
    },
    shrinkkGuide(){
      if(this.guideShow){
        this.guideShow = false;
      }else{
        this.guideShow = true;
      }
    },
    //开启全屏
    openFullscreen() {
      this.fullscreen = !this.fullscreen;
      let element = document.documentElement;
      if (this.fullscreen) {
        if (element.requestFullscreen) {
          element.requestFullscreen();
        } else if (element.mozRequestFullScreen) {
          element.mozRequestFullScreen();
        } else if (element.webkitRequestFullscreen) {
          element.webkitRequestFullscreen();
        } else if (element.msRequestFullscreen) {
          element.msRequestFullscreen();
        }
      } else {
        if (document.exitFullscreen) {
          document.exitFullscreen();
        } else if (document.mozExitFullScreen) {
          document.mozExitFullScreen();
        } else if (document.webkitExitFullscreen) {
          document.webkitExitFullscreen();
        }
      }
      this.fullscreenTitle = this.fullscreen ? "关闭全屏":"全屏显示";
    },
    //提示声音
    play() {
      //用户点击后，即可播放
      if (this.$store.state.isPlay) {
        this.$refs.audio.currentTime = 0; //从头开始播放提示音
        this.$refs.audio.play(); //播放
      }
    },
    // 点击【注销】退出登录按钮
    loginOut() {
      this.$confirm("将注销账号，是否确认？", "温馨提示", {
        confirmButtonText: "确认",
        cancelButtonText: "取消",
        type: "warning",
        cancelButtonColor:'#000'
      }).then(async () => {
        let { data: res } = await this.$http.get("/logout");
        if (res.result) {
          window.sessionStorage.clear(); //清除缓存
          this.$store.commit("loginOut"); // 注销情况下，清除vuex的tab
          //通过判断"登录类型",来返回不同的登录页面
          this.$router.replace("/"); // 不可以后退
          this.clewMsg(1,res.msg);
        } else {
          this.clewMsg(3,res.msg);
        }
      });
    },
    openUserButton(show){
      if(show){
        this.showUserPanel = true;
      }else{
        this.showUserPanel = false;
      }
    },
    clewMsg(type,mes){
      var theType = 'warning';
      if(type == 1)
        theType = 'success';
      else if(type == 3)
        theType = 'error';
      this.$message({
        message: mes,
        type: theType
      });
    }
  }
};
</script>
<style scoped>
.contain {
  width: 100%;
  min-width: 1200px !important;
  height: 100%;
  box-sizing: border-box;
  flex-direction: column;
}

/* 左边区域 */
.left{
  height: 100%;
  background: #001529;
  float: left;
}
.logo{
  width: 76%;
  height: 45px;
  padding: 10px 12%;
  display: flex;
  justify-content: center;  
  align-items: center; 
  font-size: 25px;
  font-weight: bold;
  color: #FFF;
}
.logo img{
  height: 45px;
  width: auto;
  margin-right: 15px;
}
/* 菜单区域 */
.menu{
  clear: both;
  display: block;
  width: 100%;
  height: calc(100% - 65px);
}
.menuLeft{
  float: left;
  width: 60px;
  height: 100%;
  overflow-y: auto;
  overflow-x:hidden;  
}
.menuLeft::-webkit-scrollbar,
.menuRight::-webkit-scrollbar {  
    display: none; 
    width: 0px;
}
.menuLeft div{
  display: grid;
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  font-size: 12px;
  cursor: pointer;
}
.menuLeft img{  
  height: 22px;
  width: 22px;
}
.menuItemL_1{
  color: #A6ADB4;
  width: 100%;
  height: 55px;
  padding: 5px 0;
}
.menuItemL_1:hover{
  color: #FFF;
}
.menuItemL_2{
  background: #002040;
  color: #FFF;
  width: 55px;
  height: 55px;
  padding: 5px 0;
  border-left: solid 5px #00A578;
}
.menuRight{
  float: left;
  background: #002040;
  width: calc(100% - 60px);
  height: calc(100% - 5px);
  padding-top: 5px;
}
.menuRight div{
  display: flex;
  width: calc(100% - 20px);
  height: 20px;
  line-height: 20px;
  padding: 10px 0 10px 20px;
  justify-content: left;
  align-items: center;  
}
.menuRight img{
  height: 18px;
  width: auto;
  margin-right: 10px;
}
.menuRight label{
  font-size: 16px;
}
.menuItemR_1{
  color: #A6B1BC;
  cursor: pointer;
}
.menuItemR_1:hover{
  color: #FFF;
}
.menuItemR_2{
  color: #FFF;
  background: #00A578;
  cursor: pointer;
}

/* 右边区域 */
.right{  
  height: 100%;  
  float: left;
}

/* 头部区域 */
.headContent {
  position:relative;
  width: calc(100% - 40px);
  height: 55px;
  padding: 5px 20px;
  background: #FFF;
  box-shadow: 0 1px 3px 1px rgba(0,0,0,0.1);
}
.headLeft{
  float: left;  
  width: 50%;
  height: 40px;  
  padding: 10px 0;
}
.guideIcon{
  float: left;
  width: 50px;
  display: flex;
  cursor: pointer;
  justify-content: left;
  align-items: center;
  margin-right: 5px;
}
.guideIcon img{
  height: 30px;
  width: auto;  
}
.guidePanel{
  float: left;
  width: calc(100% - 60px);
  height: 40px;
  line-height: 30px;
  float: left;
  color: #AAA;
  font-size: 14px;
  justify-content: left;
  align-items: center;
}
.guidePanel label:hover{
    text-decoration: underline;
    color:#00A578;
    cursor: pointer;
}
.guideText_1{  
  color: #999;
  margin-right: 15px;
}
.guideText_2{
  color: #000;
  margin-right: 15px;
}

/* 工具栏 */
.headRight{
  float: right;
  height: 100%;
  width: 50%;
}

.butIcon{
  margin: 15px 20px 0 0;
  cursor: pointer;
  height: 22px;
  width: auto;
}
.butText{
  background: #FFF;
  color: #666;
  border: solid 1px #999;
  border-radius: 4px;
  height: 32px;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 15px;
  margin:10px 20px 0 0 ;
}
.butText:hover{
  color: #00A578;
  border-color: #00A578;
}
.butText img{
  height: 18px;
  width: auto;
  margin-right: 8px;
}
.headImg{
  float:right;
  margin:0 10px 0 0;
  height: 50px;
  width: 50px;
  border-radius: 25px;
  cursor: pointer;
}
.loginTool{
  float:right;
  height: 100%;
  cursor: pointer;
}
.loginUser{
  height: 30px;
  line-height: 30px;
  color: #000;
  font-size: 14px;
}
.loginOrg{
  height: 30px;
  line-height: 20px;
  color: #999;
  font-size: 14px;
}
/* user data */ 
.shieldDiv{
  position: fixed;
  z-index: 98;
  width: 100%;
  height: calc(100% - 70px);
  left: 0;
  top: 70px;
}
.userPanel{
  position: fixed;
  z-index: 99;
  top:68px;
  right: 3px;
  background-color: #FFF;
  border-radius: 4px;
  box-shadow: 0 1px 4px 2px rgba(0,0,0,0.15);
  width: 270px;
}
.userPanel div{
  cursor: pointer;
  height: 30;
  line-height: 30px;
  width: calc(100% - 30px);
  padding: 5px 15px;
  font-size: 14px;
  color: #555;
  display: flex;  
  justify-content: left;
  align-items: center;
}
.userPanel img{
  height: 14px;
  width: auto;
  margin-right: 20px;
}

/* 主页面区域 */
.mainContent {
  display: block;  
  width: 100%;
  height: calc(100% - 65px);
  background-color: #EEF0F3;
}
.mainHome{
  width: calc(100% - 40px);
  height: calc(100% - 20px);
  padding: 20px 20px 0 20px;
  overflow-y: auto;
  overflow-x: hidden;
}
.notDataM{
  width: 100%;
  height: 100%;
  text-align: center;
}
.notDataM img{
  height: calc(100% - 70px);
  width: auto;
}
.notDataB img{
  height: 120px;
  width: auto;
}
.notDataB{
  width: 100%;
  height: 160px;
  text-align: center;
}
.notDataB div,.notDataM div{
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 14px;
  color: #999;
  cursor: default;
}
.noticeText{
  clear: both;
  width: 100%;
  height: 80px;
  text-indent: 32px;
  line-height: 25px;
  letter-spacing: 1px;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #000;
}
.quickItem{
  cursor: pointer;
  width: calc(33.33% - 40px);
  height: 100px;
  margin: 0 20px;
  padding: 10px 0;
  float: left;
  justify-content: center;
  align-items:center;
}
.quickItem .img{
  height: 65px;
  width: 65px;
  border-radius: 10px;
  box-shadow: 0 0 2px 1px rgba(200,200,200,0.3);
  text-align: center;
}
.quickItem img{
  height: 35px;
  width: auto;
  margin-top: 15px;
}
.quickItem .img:hover{
  background-color: #FAFAFA;
}
.quickItem .text{
  width: 100%;
  height: 25px;
  line-height: 25px;
  font-size: 13px;
  color: #000;
}
.awaitItem{
  float: left;
  width: calc(50% - 25px);
  height: 30px;
  margin: 15px 5px;
  padding: 5px 10px 5px 5px;
  background: #FAFAFA;
  box-shadow: 0 1px 2px 1px rgba(200,200,200,0.15);
  cursor: pointer;
}
.awaitLeft{
  float:left;
  width: 78%;
  height: 30px;
  line-height: 30px;
  font-size: 13px;
  color: #555;
  align-items: center;
}
.awaitLeft img{
  height: 16px;
  width: auto;
  margin-right: 8px;
}
.awaitNum{
  float:left;
  text-align: right;
  width: 20%;
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  color: #000;
}
.messageList{
  clear: both;
  width: calc(100% - 20px);
  padding: 5px 10px;
  margin-bottom: 10px;
}
.messageList > div{  
  clear: both;
  line-height: 25px;
}
.messageTitle{
  float: left;
  font-size: 15px;
  color: #0D9D74;
}
.messageDate{
  float: right;
  font-size: 13px;
  color: #999;
}
.messageText{
  font-size: 14px;
  color: #555;
  line-height: 25px;
}
.blockPanel{
  background: #FFF;  
  border-radius: 5px;
  box-shadow: 0 1px 2px 1px rgba(190,190,190,0.15);
  float: left;
}
.blockT{
  width: 100%;
  height: 30px;
  margin-bottom: 5px;
  font-size: 18px;
  color: #000;
  align-items: center;
}
.blockT img{
  height: 25px;
  width: auto;
  margin-right: 10px;
}

.block_1{
  width: calc(66.66% - 20px);
  height: 120px;
  padding: 10px 0;
  margin: 0 20px 20px 0;
}

.block_2{
  width: calc(33.33% - 60px);
  height: 430px;
  padding: 20px;
  margin: 0 20px 20px 0;
}

.block_3{
  width: calc(33.33% - 40px);
  height: 120px;
  padding:10px 20px;
  margin-bottom: 20px;
}
.block_4{
  width: calc(33.34% - 40px);
  height: 430px;
  padding: 20px;
  margin-bottom: 20px;
}

.mainCommon{
  width: calc(100% - 20px);
  height: calc(100% - 10px);
  padding: 10px 10px 0 10px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #FFF;
}

/* 功能面板 */
.toolPanel{
  float: left;
  width: calc(50% - 80px);
  padding: 20px;
  margin: 15px 20px;
  background: rgba(255,255,255,0.65);
  border-radius: 10px;
  box-shadow: 0 1px 3px 1px rgba(0,0,0,0.1);
}
.toolTitle{
  width: calc(100% - 20px);
  height: 50px;
  display: flex;
  justify-content: left;
  align-items: center;
  font-size: 28px;
  color: #000;
  font-weight: bold;
  padding: 5px 10px;
  margin-bottom: 10px;
}
.toolTitle img{
  height: 35px;
  width: auto;
  margin-right: 20px;
}


</style>
